package com.allen.workflow.delegate;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;

/**
 * @program: spring-boot-demo
 * @className WorkFlowDelegation
 * @description:
 * @author: zp
 * @create: 2024-08-16 13:48
 * @Version 1.0
 **/
public abstract class WorkFlowDelegation implements JavaDelegate {

    @Override
    public void execute(DelegateExecution delegateExecution) throws Exception {
        BusinessExecution businessExecution = new BusinessExecution(delegateExecution);
        process(businessExecution);
    }


    protected abstract void process(BusinessExecution businessExecution);
}
